import commands
import re
    
def get_user():
    user = commands.getoutput("whoami")
    return user

def root_check():
    #user_path = commands.getoutput("export $PATH")
    user = get_user()
    if user == "root":
        #root_status = re.compile('root')
        #if "root" in user_path:
        #    return "yes"
        #else:
        #    return "no"
        return "yes"
    else:
        return "no"
